package com.kehutong.charge.service;

import com.kehutong.charge.entity.ChargeBills;
import com.kehutong.charge.entity.ReceiptOrders;
import com.kehutong.charge.entity.ReceiptsStatistics;
import com.kehutong.charge.service.impl.ReceiptOrdersServiceImpl;
import com.kehutong.common.util.Token;
import org.coraframework.inject.ImplementedBy;
import org.coraframework.json.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @program: kht
 * @description: 票据管理-缴费功能服务接口
 * @author: jian Ye
 * @create: 2021/8/3
 **/
@ImplementedBy(ReceiptOrdersServiceImpl.class)
public interface ReceiptOrdersService extends BaseService<ReceiptOrders>{

    /**
     *  查询票据数据
     */
    Object findOrderReceipt(JSONObject jsonObject);


    Object save(ReceiptOrders entity, Token token) throws Exception ;

    Object savePdf(ChargeBills chargeBill, String companyNo) throws Exception;

    List<ReceiptsStatistics> groupData(JSONObject jsonObject, Token token);

    void pageExport(HttpServletRequest req, HttpServletResponse resp, JSONObject jsonObject);

    List<ReceiptOrders> findListByHouseNo(String houseNo);
}
